<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class application\modules\user\utils\User | IBOS open source</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">IBOS open source</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-application.modules.user.utils.html" title="Summary of application\modules\user\utils"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li class="active">
						<a href="namespace-application.html">
							application<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.html">
							cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.driver.html">
							driver						</a>
							</li>
					<li>
						<a href="namespace-application.core.cache.provider.html">
							provider						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.core.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.html">
							engines<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.engines.local.html">
							local						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.sae.html">
							sae						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.core.modules.html">
							modules						</a>
							</li>
					<li>
						<a href="namespace-application.core.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.core.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li class="active">
						<a href="namespace-application.modules.html">
							modules<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.html">
							article<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.calendar.html">
							calendar<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.calendar.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.contact.html">
							contact<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.contact.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.dashboard.html">
							dashboard<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.dashboard.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.department.html">
							department<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.department.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.diary.html">
							diary<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.diary.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.email.html">
							email<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.email.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.main.html">
							main<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.main.behaviors.html">
							behaviors						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.message.html">
							message<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.co.html">
							co						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.html">
							wx<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.wx.callback.html">
							callback						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.event.html">
							event						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-application.modules.message.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.mobile.html">
							mobile<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.mobile.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.position.html">
							position<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.position.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.recruit.html">
							recruit<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.recruit.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.role.html">
							role<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.role.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.role.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li class="active">
						<a href="namespace-application.modules.user.html">
							user<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.user.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.model.html">
							model						</a>
							</li>
					<li class="active">
						<a href="namespace-application.modules.user.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.vote.html">
							vote<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.vote.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.weibo.html">
							weibo<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.weibo.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.utils.html">
							utils						</a>
							</li>
								</ul></li></ul></li></ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-application.modules.user.utils.Login.html">Login</a></li>
				<li class="active"><a href="class-application.modules.user.utils.User.html">User</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class User</h1>











	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-application.html">application</a>\<a href="namespace-application.modules.html">modules</a>\<a href="namespace-application.modules.user.html">user</a>\<a href="namespace-application.modules.user.utils.html">utils</a><br>
		

			<b>Located at</b> system/modules/user/utils/User.php		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="getUserProfile" id="_getUserProfile">

			<td class="attributes"><code>
				 public static
				string|null
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getUserProfile">#</a>
			<code>getUserProfile( <span> <var>$field</var></span> )</code>

			<div class="description short">
				<p>获取用户资料</p>
			</div>

			<div class="description detailed hidden">
				<p>获取用户资料</p>



					<h4>Returns</h4>
					<div class="list">
						string|null
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="loadUser" id="_loadUser">

			<td class="attributes"><code>
				 public static
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_loadUser">#</a>
			<code>loadUser( <span>mixed <var>$uids</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>加载用户缓存，其中键对应uid
如果有传入$uids，如果是'1,2,3'格式的字符串，则转成数组，如果array(1,2,3)，继续：
1、如果传入的uid存在，则取出来，重新组合成一个新的数组，格式和不传入$uids的格式一样：
array(
1 => array(
'uid' => 1,
'username' => '沐筱琴',
'isadministrator' => 1,
'deptid' => 1,
'positionid' => 1,
'roleid' => 1,
'upuid' => 0,
'groupid' => 2,
'jobnumber' => '萌萌哒',
'realname' => '沐筱琴',
'password' => 'b04bdfc08616188a32754e21a43e6ee6',
'gender' => 0,
'weixin' => 'forsona',
'mobile' => '13250302684',
'email' => '2317216477@qq.com',
'status' => 0,
'createtime' => '1435830015',
'credits' => 2,
'newcomer' => 1,
'salt' => 'LTmRXK',
'validationemail' => 0,
'validationmobile' => 0,
'lastchangepass' => '1435907360',
'guid' => '31163F94-7736-6798-3EE7-54011002FF5C',
'group_title' => '初入江湖',
'upgrade_percent' => 4,
'next_group_credit' => 50,
'level' => 2,
'alldeptid' => '6,1',
'allupdeptid' => '',
'alldowndeptid' => '7,8,2,3,4,5,9',
'relatedDeptId' => 6,
'deptname' => '广州',
'allposid' => '1,3',
'relatedPosId' => '3',
'posname' => '总经理',
'allroleid' => '1,3',
'relatedRoleId' => '3',
'rolename' => '管理员',
'space_url' => '?r=user/home/index&amp;uid=1',
'avatar_middle' => 'static.php?type=avatar&amp;uid=1&amp;size=middle&amp;engine=LOCAL',
'avatar_small' => 'static.php?type=avatar&amp;uid=1&amp;size=small&amp;engine=LOCAL',
'avatar_big' => 'static.php?type=avatar&amp;uid=1&amp;size=big&amp;engine=LOCAL',
'bg_big' => 'static.php?type=bg&amp;uid=1&amp;size=big&amp;engine=LOCAL',
'bg_small' => 'static.php?type=bg&amp;uid=1&amp;size=small&amp;engine=LOCAL',
'birthday' => '0',
'telephone' => '',
'address' => '',
'qq' => '',
'bio' => '',
'remindsetting' => '',
),
2 => array(
//...
),
);
2、如果传入的uid都不存在，则直接返回全数组
3、如果不传入uids，则返回全数组</p>
			</div>

			<div class="description detailed hidden">
				<p>加载用户缓存，其中键对应uid
如果有传入$uids，如果是'1,2,3'格式的字符串，则转成数组，如果array(1,2,3)，继续：
1、如果传入的uid存在，则取出来，重新组合成一个新的数组，格式和不传入$uids的格式一样：
array(
1 => array(
'uid' => 1,
'username' => '沐筱琴',
'isadministrator' => 1,
'deptid' => 1,
'positionid' => 1,
'roleid' => 1,
'upuid' => 0,
'groupid' => 2,
'jobnumber' => '萌萌哒',
'realname' => '沐筱琴',
'password' => 'b04bdfc08616188a32754e21a43e6ee6',
'gender' => 0,
'weixin' => 'forsona',
'mobile' => '13250302684',
'email' => '2317216477@qq.com',
'status' => 0,
'createtime' => '1435830015',
'credits' => 2,
'newcomer' => 1,
'salt' => 'LTmRXK',
'validationemail' => 0,
'validationmobile' => 0,
'lastchangepass' => '1435907360',
'guid' => '31163F94-7736-6798-3EE7-54011002FF5C',
'group_title' => '初入江湖',
'upgrade_percent' => 4,
'next_group_credit' => 50,
'level' => 2,
'alldeptid' => '6,1',
'allupdeptid' => '',
'alldowndeptid' => '7,8,2,3,4,5,9',
'relatedDeptId' => 6,
'deptname' => '广州',
'allposid' => '1,3',
'relatedPosId' => '3',
'posname' => '总经理',
'allroleid' => '1,3',
'relatedRoleId' => '3',
'rolename' => '管理员',
'space_url' => '?r=user/home/index&amp;uid=1',
'avatar_middle' => 'static.php?type=avatar&amp;uid=1&amp;size=middle&amp;engine=LOCAL',
'avatar_small' => 'static.php?type=avatar&amp;uid=1&amp;size=small&amp;engine=LOCAL',
'avatar_big' => 'static.php?type=avatar&amp;uid=1&amp;size=big&amp;engine=LOCAL',
'bg_big' => 'static.php?type=bg&amp;uid=1&amp;size=big&amp;engine=LOCAL',
'bg_small' => 'static.php?type=bg&amp;uid=1&amp;size=small&amp;engine=LOCAL',
'birthday' => '0',
'telephone' => '',
'address' => '',
'qq' => '',
'bio' => '',
'remindsetting' => '',
),
2 => array(
//...
),
);
2、如果传入的uid都不存在，则直接返回全数组
3、如果不传入uids，则返回全数组</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uids</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="exportUser" id="_exportUser">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_exportUser">#</a>
			<code>exportUser( <span>mixed <var>$uids</var></span> )</code>

			<div class="description short">
				<p>导出用户xml格式</p>
			</div>

			<div class="description detailed hidden">
				<p>导出用户xml格式</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uids</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="cleanCache" id="_cleanCache">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_cleanCache">#</a>
			<code>cleanCache( <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>清空某用户的缓存</p>
			</div>

			<div class="description detailed hidden">
				<p>清空某用户的缓存</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="checkDataPurv" id="_checkDataPurv">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_checkDataPurv">#</a>
			<code>checkDataPurv( <span>type <var>$purvId</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$purvId</var></dt>
						<dd>$accessId</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="setPosition" id="_setPosition">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setPosition">#</a>
			<code>setPosition( <span>integer <var>$positionId</var></span>, <span>array <var>$users</var></span> )</code>

			<div class="description short">
				<p>从岗位维度设置用户的岗位</p>
			</div>

			<div class="description detailed hidden">
				<p>从岗位维度设置用户的岗位</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$positionId</var></dt>
						<dd></dd>
						<dt><var>$users</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="wrapUserInfo" id="_wrapUserInfo">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_wrapUserInfo">#</a>
			<code>wrapUserInfo( <span>array <var>$user</var></span> )</code>

			<div class="description short">
				<p>封装一个用户数组，增加一些常用的参数</p>
			</div>

			<div class="description detailed hidden">
				<p>封装一个用户数组，增加一些常用的参数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$user</var></dt>
						<dd>引用用户数组</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getHomeBg" id="_getHomeBg">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getHomeBg">#</a>
			<code>getHomeBg( <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>获取指定用户的个人首页banner</p>
			</div>

			<div class="description detailed hidden">
				<p>获取指定用户的个人首页banner</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getUserLevel" id="_getUserLevel">

			<td class="attributes"><code>
				 public static
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getUserLevel">#</a>
			<code>getUserLevel( <span>array <var>$groupid</var></span> )</code>

			<div class="description short">
				<p>获取用户等级</p>
			</div>

			<div class="description detailed hidden">
				<p>获取用户等级</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$groupid</var></dt>
						<dd>$user 用户数组</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="checkUserGroup" id="_checkUserGroup">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_checkUserGroup">#</a>
			<code>checkUserGroup( <span>integer <var>$uid</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>校验用户组</p>
			</div>

			<div class="description detailed hidden">
				<p>校验用户组</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="batchUpdateCredit" id="_batchUpdateCredit">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_batchUpdateCredit">#</a>
			<code>batchUpdateCredit( <span><code><a href="class-application.core.utils.String.html">application\core\utils\String</a></code> <var>$action</var></span>, <span>Integer <var>$uids</var> = <span class="php-num">0</span></span>, <span>array <var>$extraSql</var> = <span class="php-keyword1">array</span>()</span>, <span>Integer <var>$coef</var> = <span class="php-num">1</span> </span> )</code>

			<div class="description short">
				<p>批量执行某一条策略规则</p>
			</div>

			<div class="description detailed hidden">
				<p>批量执行某一条策略规则</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$action</var></dt>
						<dd>$action:  规则action名称</dd>
						<dt><var>$uids</var></dt>
						<dd>$uids: 操作用户可以为单个uid或uid数组</dd>
						<dt><var>$extraSql</var></dt>
						<dd>$extrasql: user_count的额外操作字段数组格式为 array('extcredits1' => '1')</dd>
						<dt><var>$coef</var></dt>
						<dd>$coef: 积分放大倍数，当为负数时为反转操作</dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="updateUserCount" id="_updateUserCount">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_updateUserCount">#</a>
			<code>updateUserCount( <span>Integer <var>$uids</var></span>, <span><code><a href="class-application.core.utils.String.html">application\core\utils\String</a></code> <var>$dataArr</var> = <span class="php-keyword1">array</span>()</span>, <span>Boolean <var>$checkGroup</var> = <span class="php-keyword1">true</span></span>, <span><code><a href="class-application.core.utils.String.html">application\core\utils\String</a></code> <var>$operation</var> = <span class="php-quote">''</span></span>, <span>Integer <var>$relatedid</var> = <span class="php-num">0</span></span>, <span><code><a href="class-application.core.utils.String.html">application\core\utils\String</a></code> <var>$ruletxt</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>添加积分</p>
			</div>

			<div class="description detailed hidden">
				<p>添加积分</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uids</var></dt>
						<dd>$uids: 用户uid或者uid数组</dd>
						<dt><var>$dataArr</var></dt>
						<dd>$dataarr: member count相关操作数组，例: array('threads' => 1, 'doings' => -1)</dd>
						<dt><var>$checkGroup</var></dt>
						<dd>$checkgroup: 是否检查用户组 true or false</dd>
						<dt><var>$operation</var></dt>
						<dd>$operation: 操作类型</dd>
						<dt><var>$relatedid</var></dt>
						<dd>$relatedid:</dd>
						<dt><var>$ruletxt</var></dt>
						<dd>$ruletxt: 积分规则文本</dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="updateCreditByAction" id="_updateCreditByAction">

			<td class="attributes"><code>
				 public static
				返回积分策略
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_updateCreditByAction">#</a>
			<code>updateCreditByAction( <span>string <var>$action</var></span>, <span>integer <var>$uid</var> = <span class="php-num">0</span></span>, <span>array <var>$extraSql</var> = <span class="php-keyword1">array</span>()</span>, <span>string <var>$needle</var> = <span class="php-quote">''</span></span>, <span>integer <var>$coef</var> = <span class="php-num">1</span></span>, <span>integer <var>$update</var> = <span class="php-num">1</span> </span> )</code>

			<div class="description short">
				<p>根据某个动作执行积分规则</p>
			</div>

			<div class="description detailed hidden">
				<p>根据某个动作执行积分规则</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$action</var></dt>
						<dd>$action:  规则action名称</dd>
						<dt><var>$uid</var></dt>
						<dd>$uid: 操作用户</dd>
						<dt><var>$extraSql</var></dt>
						<dd>$extrasql: user_count的额外操作字段数组格式为 array('extcredits1' => '1')</dd>
						<dt><var>$needle</var></dt>
						<dd>$needle: 防重字符串</dd>
						<dt><var>$coef</var></dt>
						<dd>$coef: 积分放大倍数</dd>
						<dt><var>$update</var></dt>
						<dd>$update: 是否执行更新操作</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						返回积分策略
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="creditLog" id="_creditLog">

			<td class="attributes"><code>
				 public static
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_creditLog">#</a>
			<code>creditLog( <span>type <var>$uids</var></span>, <span>type <var>$operation</var></span>, <span>type <var>$relatedid</var></span>, <span>type <var>$data</var></span> )</code>

			<div class="description short">
				<p>积分记录日志</p>
			</div>

			<div class="description detailed hidden">
				<p>积分记录日志</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uids</var></dt>
						<dd></dd>
						<dt><var>$operation</var></dt>
						<dd></dd>
						<dt><var>$relatedid</var></dt>
						<dd></dd>
						<dt><var>$data</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getManagerDeptSubUserByUid" id="_getManagerDeptSubUserByUid">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getManagerDeptSubUserByUid">#</a>
			<code>getManagerDeptSubUserByUid( <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>取得该用户的所有直属下属及下属所在部门数据</p>
			</div>

			<div class="description detailed hidden">
				<p>取得该用户的所有直属下属及下属所在部门数据</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>//返回带直属下属的部门及其这个部门的直属下属数组
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="hasSubUid" id="_hasSubUid">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_hasSubUid">#</a>
			<code>hasSubUid( <span>type <var>$uid</var></span> )</code>

			<div class="description short">
				<p>通过uid判断是否存在下属</p>
			</div>

			<div class="description detailed hidden">
				<p>通过uid判断是否存在下属</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getAllSubs" id="_getAllSubs">

			<td class="attributes"><code>
				 public static
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getAllSubs">#</a>
			<code>getAllSubs( <span>integer <var>$uid</var></span>, <span>string <var>$limitCondition</var> = <span class="php-quote">''</span></span>, <span>boolean <var>$uidFlag</var> = <span class="php-keyword1">false</span> </span> )</code>

			<div class="description short">
				<p>取得该用户的所有下属数据</p>
			</div>

			<div class="description detailed hidden">
				<p>取得该用户的所有下属数据</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd></dd>
						<dt><var>$limitCondition</var></dt>
						<dd>默认为空，取全部</dd>
						<dt><var>$uidFlag</var></dt>
						<dd>是否只返回uid数组</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="checkIsSub" id="_checkIsSub">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_checkIsSub">#</a>
			<code>checkIsSub( <span>integer <var>$uid</var></span>, <span>integer <var>$subUid</var></span> )</code>

			<div class="description short">
				<p>判断某个uid是否是另一个uid的下属</p>
			</div>

			<div class="description detailed hidden">
				<p>判断某个uid是否是另一个uid的下属</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>参照上司uid</dd>
						<dt><var>$subUid</var></dt>
						<dd>参照下属uid</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="checkIsUpUid" id="_checkIsUpUid">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_checkIsUpUid">#</a>
			<code>checkIsUpUid( <span>integer <var>$uid</var></span>, <span>integer <var>$upUid</var></span> )</code>

			<div class="description short">
				<p>判断某个uid是否是另一个uid的直属上司</p>
			</div>

			<div class="description detailed hidden">
				<p>判断某个uid是否是另一个uid的直属上司</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>参照下属uid</dd>
						<dt><var>$upUid</var></dt>
						<dd>参照直属上司uid</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getSupUid" id="_getSupUid">

			<td class="attributes"><code>
				 public static
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getSupUid">#</a>
			<code>getSupUid( <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>获取上司UID</p>
			</div>

			<div class="description detailed hidden">
				<p>获取上司UID</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer<br>上司uid，没上司就返回0
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getAvatar" id="_getAvatar">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getAvatar">#</a>
			<code>getAvatar( <span>integer <var>$uid</var></span>, <span>string <var>$size</var> = <span class="php-quote">'middle'</span> </span>, <span>string <var>$type</var>,…</span> )</code>

			<div class="description short">
				<p>获取指定用户头像的文件路径存放地址</p>
			</div>

			<div class="description detailed hidden">
				<p>获取指定用户头像的文件路径存放地址</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
						<dt><var>$size</var></dt>
						<dd>头像尺寸</dd>
						<dt><var>$type</var>,…</dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getBg" id="_getBg">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getBg">#</a>
			<code>getBg( <span>integer <var>$uid</var></span>, <span>string <var>$size</var> = <span class="php-quote">'small'</span> </span> )</code>

			<div class="description short">
				<p>获取指定用户背景图文件路径存放地址</p>
			</div>

			<div class="description detailed hidden">
				<p>获取指定用户背景图文件路径存放地址</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
						<dt><var>$size</var></dt>
						<dd>背景尺寸</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getTempBg" id="_getTempBg">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getTempBg">#</a>
			<code>getTempBg( <span>string <var>$name</var></span>, <span>string <var>$size</var></span> )</code>

			<div class="description short">
				<p>获取系统自带背景</p>
			</div>

			<div class="description detailed hidden">
				<p>获取系统自带背景</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$name</var></dt>
						<dd>图片名(目前有temp1,temp2,temp3)</dd>
						<dt><var>$size</var></dt>
						<dd>要获取的背景图大小(big middle small)</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="isOnline" id="_isOnline">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_isOnline">#</a>
			<code>isOnline( <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>查看指定uid是否在线</p>
			</div>

			<div class="description detailed hidden">
				<p>查看指定uid是否在线</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getOnlineStatus" id="_getOnlineStatus">

			<td class="attributes"><code>
				 public static
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getOnlineStatus">#</a>
			<code>getOnlineStatus( <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>获得指定uid 在线状态
-1 为离线，0为在线，1为忙碌，2为离开</p>
			</div>

			<div class="description detailed hidden">
				<p>获得指定uid 在线状态
-1 为离线，0为在线，1为忙碌，2为离开</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="checkNavPurv" id="_checkNavPurv">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_checkNavPurv">#</a>
			<code>checkNavPurv( <span>type <var>$nav</var></span> )</code>

			<div class="description short">
				<p>检查导航权限</p>
			</div>

			<div class="description detailed hidden">
				<p>检查导航权限</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$nav</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="getUserPurv" id="_getUserPurv">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getUserPurv">#</a>
			<code>getUserPurv( <span>integer <var>$uid</var></span> )</code>

			<div class="description short">
				<p>获取用户权限</p>
			</div>

			<div class="description detailed hidden">
				<p>获取用户权限</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>用户ID</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>权限数组
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getUserByPy" id="_getUserByPy">

			<td class="attributes"><code>
				 public static
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getUserByPy">#</a>
			<code>getUserByPy( <span>array <var>$uids</var> = <span class="php-keyword1">NULL</span></span>, <span>integer <var>$first</var> = <span class="php-keyword1">false</span> </span> )</code>

			<div class="description short">
				<p>按拼音排序用户</p>
			</div>

			<div class="description detailed hidden">
				<p>按拼音排序用户</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uids</var></dt>
						<dd>要排序的用户uid</dd>
						<dt><var>$first</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getJsConstantUids" id="_getJsConstantUids">

			<td class="attributes"><code>
				 public static
				json
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getJsConstantUids">#</a>
			<code>getJsConstantUids( <span> <var>$uid</var></span> )</code>

			<div class="description short">
				<p>获取封装后的js选人框常用联系人uid数组</p>
			</div>

			<div class="description detailed hidden">
				<p>获取封装后的js选人框常用联系人uid数组</p>



					<h4>Returns</h4>
					<div class="list">
						json
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getAccountSetting" id="_getAccountSetting">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getAccountSetting">#</a>
			<code>getAccountSetting( )</code>

			<div class="description short">
				<p>获取安全配置和密码验证规则</p>
			</div>

			<div class="description detailed hidden">
				<p>获取安全配置和密码验证规则</p>



					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="handleUserGroupByDept" id="_handleUserGroupByDept">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_handleUserGroupByDept">#</a>
			<code>handleUserGroupByDept( <span>array <var>$users</var></span> )</code>

			<div class="description short">
				<p>将一个用户数组按部门分组，返回以相同部门为一组的用户数组,并且带部门名称；</p>
			</div>

			<div class="description detailed hidden">
				<p>将一个用户数组按部门分组，返回以相同部门为一组的用户数组,并且带部门名称；</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$users</var></dt>
						<dd>用户数组</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
			</table>
		</div>











</div>
	</div>

	<div id="footer">
		IBOS open source API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
